package com.xiu.json;

import java.util.Map;

/**
 * @Author: tjc
 * @description
 * @Date Created in 20:46 2022-04-02
 */
public class JSONArray {
    Object[] elements;
    public JSONArray(Object[] arr) {
        this.elements = arr;
    }

    public JSONObject getJSONObject(int index) {
        return new JSONObject((Map<String, Object>) elements[index]);
    }

    public Object get(int index) {
        return elements[index];
    }

}
